﻿using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Framework.Autofac.Aop
{
    /// <summary>
    /// aop 拦截   Castle.Core
    /// </summary>
    public class LogInterceptor : IInterceptor
    {
        public void Intercept(IInvocation invocation)
        {
            //方法执行前
            {

            }
            invocation.Proceed(); // 执行方法
            //方法执行后
            {

            }
        }
    }
}
